package com.cet.jvm;

/**
 * @program: cet-practice
 * @description: 栈溢出
 * @author: 陈恩涛
 * @create: 2023-04-12 10:03
 **/
public class StackOverflowTest {
    public static void main(String[] args) {
        recurMethod();
    }

    static int i = 0;

    private static void recurMethod() {
        i++;
        System.out.println(i);
        recurMethod();
    }
}
